﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using DTO;
using System.Collections;
using System.Data;

namespace BLL
{
    public partial class LoadCustomerFunc
    {
        public List<CustomerEntity> LoadCustomerByAll()
        {
            CustomerService sv = new CustomerService();
            return sv.LoadCustomerByAll();
        }

        public CustomerEntity LoadCustomerById(long customerid)
        {
            CustomerService sv = new CustomerService();
            return sv.LoadCustomerByID(customerid);
        }

        public CustomerEntity LoadCustomerByCellPhone(string cellphonenumber)
        {
            CustomerService sv = new CustomerService();
            return sv.LoadCustomerByCellPhone(cellphonenumber);
        }

        public CustomerEntity LoadCustomerByHomePhone(string homephonenumber)
        {
            CustomerService sv = new CustomerService();
            return sv.LoadCustomerByHomePhone(homephonenumber);
        }

        public CustomerEntity LoadCustomerByOfficePhone(string officephonenumber)
        {
            CustomerService sv = new CustomerService();
            return sv.LoadCustomerByOfficePhone(officephonenumber);
        }

        public List<CustomerEntity> LoadListCustomerByCallStatus(int callstatus)
        {
            CustomerService sv = new CustomerService();
            return sv.LoadListCustomerByCallStatus(callstatus);
        }

        public List<CustomerEntity> LoadListCustomerByStatus(int status)
        {
            CustomerService sv = new CustomerService();
            return sv.LoadListCustomerByStatus(status);
        }

        public DataTable LoadCustomerListCAD(DateTime startDate, DateTime endDate, int userID, int resultdetail)
        {
            CustomerService sv = new CustomerService();
            return sv.LoadCustomerListCAD(startDate, endDate, userID, resultdetail);
        }

        public void  DeleteCusFromDividingWorkings(long customerID)
        {
            CustomerService sv = new CustomerService();
            sv.DeleteCusFromDividingWorkings(customerID);
        }
    }
}
